import requests


class TestLogin(object):
    @classmethod
    def test_login(cls,body):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        headers = {"Content-Type": "application/json"}
        # body = {"mobile": {mobile}, "password": {password}}
        resp = requests.post(url, headers=headers, json=body)
        return resp
if __name__ == '__main__':
    body = {"mobile": "13800000002", "password": "123456"}
    a = TestLogin.test_login(body)
    print(a)
